﻿
fs.util.pageLoadFunction.push(function () {
    fs.sys.defaultDigits = 4;
});

firstColumns = [
  { index: 1, headerText: "Local Currency", edit: false, width: 80, rowText: "LC", manual: true },
  { index: 2, headerText: "Foreign Currency", edit: false, width: 80, rowText: "FC", manual: true },
  { index: 4, headerText: "YTD M-1", edit: true, width: 80, rowText: "YTDM_1", style: "fs_disable", hide: true },
  { index: 4, headerText: "YTD", edit: true, width: 80, rowText: "YTD" },
  { index: 3, headerText: "Current Month", edit: true, width: 80, rowText: "CM" },
  { index: 3, headerText: "Closing Rate", edit: true, width: 80, rowText: "CR" }
];

  var readyJSON = [
{ accountcode: "ER01000001", LC: "EUR", FC: "USD", datarow: true, Process: [{
    Field: "YTDM_1",
    Exp: {
        mode: "refrence", list: "Common_Exchange_Rate_Actual", fields: ["CM|ER01000001"], equ: "+", passMonth: true
    }
}, {
    Field: "YTD",
    Exp: {
        mode: "search", fields: ["CM|ER01000001", "YTDM_1|ER01000001"], equ: "+", addition: "{0}/_CM_"
    }
}]},
{ accountcode: "ER01000002", LC: "EUR", FC: "RMB", datarow: true, Process: [{
    Field: "YTDM_1",
    Exp: {
        mode: "refrence", list: "Common_Exchange_Rate_Actual", fields: ["CM|ER01000002"], equ: "+", passMonth: true
    }
}, {
    Field: "YTD",
    Exp: {
        mode: "search", fields: ["CM|ER01000002", "YTDM_1|ER01000002"], equ: "+", addition: "{0}/_CM_"
    }
}]
},
{ accountcode: "ER01000003", LC: "EUR", FC: "SGD", datarow: true, Process: [{
    Field: "YTDM_1",
    Exp: {
        mode: "refrence", list: "Common_Exchange_Rate_Actual", fields: ["CM|ER01000003"], equ: "+", passMonth: true
    }
}, {
    Field: "YTD",
    Exp: {
        mode: "search", fields: ["CM|ER01000003", "YTDM_1|ER01000003"], equ: "+", addition: "{0}/_CM_"
    }
}]
},
{ accountcode: "ER01000004", LC: "EUR", FC: "JPY", datarow: true, Process: [{
    Field: "YTDM_1",
    Exp: {
        mode: "refrence", list: "Common_Exchange_Rate_Actual", fields: ["CM|ER01000004"], equ: "+", passMonth: true
    }
}, {
    Field: "YTD",
    Exp: {
        mode: "search", fields: ["CM|ER01000004", "YTDM_1|ER01000004"], equ: "+", addition: "{0}/_CM_"
    }
}]
},
{ accountcode: "ER01000005", LC: "EUR", FC: "KRW", datarow: true, Process: [{
    Field: "YTDM_1",
    Exp: {
        mode: "refrence", list: "Common_Exchange_Rate_Actual", fields: ["CM|ER01000005"], equ: "+", passMonth: true
    }
}, {
    Field: "YTD",
    Exp: {
        mode: "search", fields: ["CM|ER01000005", "YTDM_1|ER01000005"], equ: "+", addition: "{0}/_CM_"
    }
}]
}

]